package com.bw.zonghe0719.adapter

import android.widget.TextView
import com.bw.base.entity.Roll
import com.bw.base.mvvm.BaseViewModel
import com.bw.zonghe0719.R
import com.bw.zonghe0719.fragment.home.HomeVieModel
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class NewsAdapter:BaseQuickAdapter<Roll,BaseViewHolder>(R.layout.item_news) {
    override fun convert(holder: BaseViewHolder, item: Roll) {
        holder.getView<TextView>(R.id.news_tv).text=item.info
    }
}